<!DOCTYPE html>
<head><title>xueme</title>
<script src="js/jquery-1.11.1.min.js"></script>

<meta charset="utf-8">
</head>

<body>

<h2>在 JavaScript 中创建 JSON 对象</h2>

<p>
Name: <span id="jname"></span><br />
Age: <span id="jage"></span><br />
Address: <span id="jstreet"></span><br />
Phone: <span id="jphone"></span><br />
</p>

<script type="text/javascript">
var JSONObject= {"name":"xueme","version":"1.0.0","test":"kkk"};
document.getElementById("jname").innerHTML=JSONObject.name;
document.getElementById("jage").innerHTML=JSONObject.version;
document.getElementById("jstreet").innerHTML=JSONObject.test;
//document.getElementById("jphone").innerHTML=JSONObject.phone

</script>

</body>
</html>